Repository navigation
Tarea 4291 Mejora del Reseteo Anual del Patrón de Proyectos - #38
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
•Añadir checkbox bajo campo código del proyecto
◦Qué había que hacer: Permitir marcar una opción junto al código del proyecto en el formulario.
◦Qué he hecho: Añadí el checkbox en la UI y su manejo en el backend.
◦Cómo se ha hecho: Modificada la plantilla del formulario, procesado del valor en el controlador/modelo y pequeños ajustes de estilo.
•Lógica de reinicio anual del patrón de proyectos
◦Qué había que hacer: Reiniciar la numeración/patrón de proyectos al cambio de año.
◦Qué he hecho: Implementé la rutina que detecta año nuevo y resetea el patrón.
◦Cómo se ha hecho: Nuevo método en el servicio/model que comprueba la fecha y aplica el reinicio (invocado al crear/actualizar proyectos o por tarea programada).
•Test unitario incorporado y pasado
◦Qué había que hacer: Verificar cobertura y correcto comportamiento de los cambios.
◦Qué he hecho: Añadí tests que cubren el checkbox y el reinicio anual; la suite pasa.
◦Cómo se ha hecho: Escribí pruebas PHPUnit (mocks donde hacía falta) y ejecuté la suite — 21 tests, 94 aserciones, OK.